<?php
/**
 * Author: lee wei
 * Date: 2021/12/8
 */
namespace app\admin\logic;

use app\common\exception\BusinessException;

class BaseLogic
{

    /**
     * 错误内容
     */
    protected string $error = '';

    /**
     * 获取最后产生的错误
     * @return string
     */
    public function getError(): string
    {
        return $this->error;
    }

    /**
     * 设置错误
     * @param string $error 信息信息
     */
    protected function setError(string $error)
    {
        $this->error = $error;
    }

}